package com.ytktt.study.week12.task4;

import com.ytktt.study.week12.task4.snowflake.Snowflake;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * 金融系统kafka生产者应用
 *
 * @author ytk
 */
@SpringBootApplication
public class FinancialKafkaProducerApplication {

    public static void main(String[] args) {
        SpringApplication.run(FinancialKafkaProducerApplication.class, args);
    }

    @Bean
    public Snowflake snowflake() {
        return new Snowflake(1, 1);
    }
}
